﻿using Simple.Tools.Entity.VerifyAttribute;
using Simple.Tools.Verify;
using SqlSugar;
using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleSaas.Entity.Dto
/// <summary>
/// 版 本 钢易智企2.0 V 2.0.0 钢易智企2.0
/// Copyright (c) 2023 杭州钢易科技有限公司
/// 创建人：曾东明
/// 日 期：2024
/// 描 述：
/// </summary>
{
	public class SysMenuDto:IParameterVerify
	{
		/// <summary>
		/// 菜单名称
		/// </summary>
		[SwaggerSchema(Description = "id")]
		public string Id { get; set; }

		/// <summary>
		/// 菜单名称
		/// </summary>
		[SwaggerSchema(Description = "菜单名称")]
		[CusRequired("菜单名称")]
		[CusSize("菜单名称",max:50)]
		public string MenuName { get; set; }

		/// <summary>
		///  前端路径
		/// </summary>
		[SwaggerSchema(Description = "前端路径")]
		[CusSize("菜单名称", max: 255)]
		public string Path { get; set; }

		/// <summary>
		///  图标
		/// </summary>
		[SwaggerSchema(Description = "图标")]
		[CusSize("菜单名称", max: 50)]
		public string Icon { get; set; }

		/// <summary>
		///  序号
		/// </summary>
		[SwaggerSchema(Description = "序号")]
		public int Sort { get; set; }

		/// <summary>
		///  父级菜单id
		/// </summary>
		[SwaggerSchema(Description = "父级菜单id")]
		public string ParentId { get; set; }

		/// <summary>
		///  1-菜单
		///  2-按钮
		/// </summary>
		[SwaggerSchema(Description = "1-菜单 2-按钮")]
		public int MenuType { get; set; }

		/// <summary>
		///  appId
		/// </summary>
		[SwaggerSchema(Description = "appId")]
		[CusRequired("appId")]
		public string AppId { get; set; }

	}
}
